052 - Dice Product(★3)
式で書いて因数分解するとわかる
$ \prod (A_{i1}+\cdots A_{i6})
が答え
https://atcoder.jp/contests/typical90/submissions/59667067